package com.msmall.community.convene.service;

import com.msmall.base.pager.PaginationSupport;
import com.msmall.base.service.BaseManager;
import com.msmall.community.convene.model.Convene;

public interface ConveneManager extends BaseManager<Convene, Long>{
	
	/**
	 * 用户删除自己的召集令
	 * @param conveneIds ","分割
	 * @throws Exception
	 */
	public void removeConvene(String conveneIds, Long userid) throws Exception;
	
	public void saveConvene(Convene convene, Long userid) throws Exception;
	/**
	 * 获得我所有发布的召集令
	 * @param page
	 * @param userid
	 * @throws Exception
	 */
	public void getMyConvenes(PaginationSupport page, Long userid) throws Exception;
	
	/**
	 * 验证Convene TITLE
	 * @return 1:正常；2字符太少；3字符太多;4含有非法字符
	 */
	public int validateConveneTitle(String title);
	
	/**
	 * 验证Convene content
	 * @return 1:正常；2字符太少；3字符太多;4含有非法字符
	 */
	public int validateConveneContent(String content);
	
}
